package com.flashcash.solu.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class LoanAppBeanFather implements Parcelable {
    private double serviceFeeAccr;
    private LoanAppBeanFatherStatusLogs[] statusLogs;
    private String dueDate;
    private int remainingDays;
    private double minRepaymentAmount;
    private double issueAmount;
    private String cardNo;
    private String periodUnit;
    private String credentialNo;
    private double remainAmount;
    private double interestAccr;
    private double defaultAccr;
    private String issueDate;
    private double defaultPaid;
    private double interestPaid;
    private String bankCode;
    private double amount;
    private int period;
    private String clearDate;
    private String comments;
    private double cost;
    private double adjustAmount;
    private double principalPaid;
    private double totalAmount;
    private double principalAccr;
    private String createTime;
    private double dueAmount;
    private double serviceFeePaid;
    private String loanAppId;
    private double paidAmount;
    private String status;
    private long productId;
    private String merchantName;
    private String controlNumber;
    private String contractNumber;
    private String sender;
    private boolean expand;//展开状态

    public double getServiceFeeAccr() {
        return this.serviceFeeAccr;
    }

    public void setServiceFeeAccr(double serviceFeeAccr) {
        this.serviceFeeAccr = serviceFeeAccr;
    }

    public LoanAppBeanFatherStatusLogs[] getStatusLogs() {
        return this.statusLogs;
    }

    public void setStatusLogs(LoanAppBeanFatherStatusLogs[] statusLogs) {
        this.statusLogs = statusLogs;
    }

    public String getDueDate() {
        return this.dueDate;
    }

    public void setDueDate(String dueDate) {
        this.dueDate = dueDate;
    }

    public int getRemainingDays() {
        return this.remainingDays;
    }

    public void setRemainingDays(int remainingDays) {
        this.remainingDays = remainingDays;
    }

    public double getMinRepaymentAmount() {
        return this.minRepaymentAmount;
    }

    public void setMinRepaymentAmount(double minRepaymentAmount) {
        this.minRepaymentAmount = minRepaymentAmount;
    }

    public double getIssueAmount() {
        return issueAmount;
    }

    public void setIssueAmount(double issueAmount) {
        this.issueAmount = issueAmount;
    }

    public String getCardNo() {
        return this.cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getPeriodUnit() {
        return this.periodUnit;
    }

    public void setPeriodUnit(String periodUnit) {
        this.periodUnit = periodUnit;
    }

    public String getCredentialNo() {
        return this.credentialNo;
    }

    public void setCredentialNo(String credentialNo) {
        this.credentialNo = credentialNo;
    }

    public double getRemainAmount() {
        return this.remainAmount;
    }

    public void setRemainAmount(double remainAmount) {
        this.remainAmount = remainAmount;
    }

    public double getInterestAccr() {
        return this.interestAccr;
    }

    public void setInterestAccr(double interestAccr) {
        this.interestAccr = interestAccr;
    }

    public double getDefaultAccr() {
        return this.defaultAccr;
    }

    public void setDefaultAccr(double defaultAccr) {
        this.defaultAccr = defaultAccr;
    }

    public String getIssueDate() {
        return this.issueDate;
    }

    public void setIssueDate(String issueDate) {
        this.issueDate = issueDate;
    }

    public double getDefaultPaid() {
        return this.defaultPaid;
    }

    public void setDefaultPaid(double defaultPaid) {
        this.defaultPaid = defaultPaid;
    }

    public double getInterestPaid() {
        return this.interestPaid;
    }

    public void setInterestPaid(double interestPaid) {
        this.interestPaid = interestPaid;
    }

    public String getBankCode() {
        return this.bankCode;
    }

    public void setBankCode(String bankCode) {
        this.bankCode = bankCode;
    }

    public double getAmount() {
        return this.amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public int getPeriod() {
        return this.period;
    }

    public void setPeriod(int period) {
        this.period = period;
    }

    public String getClearDate() {
        return this.clearDate;
    }

    public void setClearDate(String clearDate) {
        this.clearDate = clearDate;
    }

    public String getComments() {
        return this.comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public double getCost() {
        return this.cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public double getAdjustAmount() {
        return this.adjustAmount;
    }

    public void setAdjustAmount(double adjustAmount) {
        this.adjustAmount = adjustAmount;
    }

    public double getPrincipalPaid() {
        return this.principalPaid;
    }

    public void setPrincipalPaid(double principalPaid) {
        this.principalPaid = principalPaid;
    }

    public double getTotalAmount() {
        return this.totalAmount;
    }

    public void setTotalAmount(double totalAmount) {
        this.totalAmount = totalAmount;
    }

    public double getPrincipalAccr() {
        return this.principalAccr;
    }

    public void setPrincipalAccr(double principalAccr) {
        this.principalAccr = principalAccr;
    }

    public String getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public double getDueAmount() {
        return this.dueAmount;
    }

    public void setDueAmount(double dueAmount) {
        this.dueAmount = dueAmount;
    }

    public double getServiceFeePaid() {
        return this.serviceFeePaid;
    }

    public void setServiceFeePaid(double serviceFeePaid) {
        this.serviceFeePaid = serviceFeePaid;
    }

    public String getLoanAppId() {
        return this.loanAppId;
    }

    public void setLoanAppId(String loanAppId) {
        this.loanAppId = loanAppId;
    }

    public double getPaidAmount() {
        return this.paidAmount;
    }

    public void setPaidAmount(double paidAmount) {
        this.paidAmount = paidAmount;
    }

    public String getStatus() {
        return this.status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public long getProductId() {
        return productId;
    }

    public void setProductId(long productId) {
        this.productId = productId;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public String getControlNumber() {
        return controlNumber;
    }

    public void setControlNumber(String controlNumber) {
        this.controlNumber = controlNumber;
    }

    public String getContractNumber() {
        return contractNumber;
    }

    public void setContractNo(String contractNumber) {
        this.contractNumber = contractNumber;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public boolean isExpand() {
        return expand;
    }

    public void setExpand(boolean expand) {
        this.expand = expand;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeDouble(this.serviceFeeAccr);
        dest.writeTypedArray(this.statusLogs, flags);
        dest.writeString(this.dueDate);
        dest.writeInt(this.remainingDays);
        dest.writeDouble(this.minRepaymentAmount);
        dest.writeDouble(this.issueAmount);
        dest.writeString(this.cardNo);
        dest.writeString(this.periodUnit);
        dest.writeString(this.credentialNo);
        dest.writeDouble(this.remainAmount);
        dest.writeDouble(this.interestAccr);
        dest.writeDouble(this.defaultAccr);
        dest.writeString(this.issueDate);
        dest.writeDouble(this.defaultPaid);
        dest.writeDouble(this.interestPaid);
        dest.writeString(this.bankCode);
        dest.writeDouble(this.amount);
        dest.writeInt(this.period);
        dest.writeString(this.clearDate);
        dest.writeString(this.comments);
        dest.writeDouble(this.cost);
        dest.writeDouble(this.adjustAmount);
        dest.writeDouble(this.principalPaid);
        dest.writeDouble(this.totalAmount);
        dest.writeDouble(this.principalAccr);
        dest.writeString(this.createTime);
        dest.writeDouble(this.dueAmount);
        dest.writeDouble(this.serviceFeePaid);
        dest.writeString(this.loanAppId);
        dest.writeDouble(this.paidAmount);
        dest.writeString(this.status);
        dest.writeLong(this.productId);
        dest.writeString(this.merchantName);
        dest.writeString(this.controlNumber);
        dest.writeString(this.contractNumber);
        dest.writeString(this.sender);
        dest.writeByte(this.expand ? (byte) 1 : (byte) 0);
    }

    public LoanAppBeanFather() {
    }

    protected LoanAppBeanFather(Parcel in) {
        this.serviceFeeAccr = in.readDouble();
        this.statusLogs = in.createTypedArray(LoanAppBeanFatherStatusLogs.CREATOR);
        this.dueDate = in.readString();
        this.remainingDays = in.readInt();
        this.minRepaymentAmount = in.readDouble();
        this.issueAmount = in.readDouble();
        this.cardNo = in.readString();
        this.periodUnit = in.readString();
        this.credentialNo = in.readString();
        this.remainAmount = in.readDouble();
        this.interestAccr = in.readDouble();
        this.defaultAccr = in.readDouble();
        this.issueDate = in.readString();
        this.defaultPaid = in.readDouble();
        this.interestPaid = in.readDouble();
        this.bankCode = in.readString();
        this.amount = in.readDouble();
        this.period = in.readInt();
        this.clearDate = in.readString();
        this.comments = in.readString();
        this.cost = in.readDouble();
        this.adjustAmount = in.readDouble();
        this.principalPaid = in.readDouble();
        this.totalAmount = in.readDouble();
        this.principalAccr = in.readDouble();
        this.createTime = in.readString();
        this.dueAmount = in.readDouble();
        this.serviceFeePaid = in.readDouble();
        this.loanAppId = in.readString();
        this.paidAmount = in.readDouble();
        this.status = in.readString();
        this.productId = in.readLong();
        this.merchantName = in.readString();
        this.controlNumber = in.readString();
        this.contractNumber = in.readString();
        this.sender = in.readString();
        this.expand = in.readByte() != 0;
    }

    public static final Creator<LoanAppBeanFather> CREATOR = new Creator<LoanAppBeanFather>() {
        @Override
        public LoanAppBeanFather createFromParcel(Parcel source) {
            return new LoanAppBeanFather(source);
        }

        @Override
        public LoanAppBeanFather[] newArray(int size) {
            return new LoanAppBeanFather[size];
        }
    };
}
